<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import AuthLayout from '@/layouts/AuthLayout.vue'

const route = useRoute()

const isAuthPage = computed(() => {
  return route.meta?.layout === 'auth'
})
</script>

<template>
  <div id="app">
    <AuthLayout v-if="isAuthPage">
      <router-view />
    </AuthLayout>
    <router-view v-else />
  </div>
</template>
